package com.intelligent.ispc.foundation.event;

/**
 * Created by Peter on 2016/4/22.
 */
public class FileChangeEvent implements Event {

    private String fileFolder;
    private String fileName;

    public FileChangeEvent(String fileName, String fileFolder) {
        this.fileName = fileName;
        this.fileFolder = fileFolder;
    }

    public String getFileFolder() {
        return fileFolder;
    }

    public String getFileName() {
        return fileName;
    }

    public String getFilePath() {
        String spc = "";
        if (fileFolder.charAt(fileFolder.length() - 1) != '/'
                || fileFolder.charAt(fileFolder.length() - 1) != '\\') {
            spc = "/";
        }
        return fileFolder + spc + fileName;
    }

}
